
package com.bonc.common.security.service;

import com.bonc.common.bean.PageContent;
import com.bonc.common.security.dao.SysUserDao;
import com.bonc.common.security.dao.SysUserDao2;
import com.bonc.common.security.entity.SysUser;
import com.bonc.common.security.entity.*;

import java.util.*;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import javax.persistence.criteria.Join;
import javax.persistence.criteria.JoinType;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 *
 * @author song
 */
@Service
@Transactional
public class SysUserServiceImpl2 implements SysUserService2{
    
    
    @Autowired
    private SysUserDao2 sysUserDao;

    @Override
    public SysUser findByLoginId(String loginId) {
        
       return  sysUserDao.findByLoginId(loginId);
    }

    /**
     * @return the sysUserDao
     */
    public SysUserDao2 getSysUserDao() {
        return sysUserDao;
    }

    /**
     * @param sysUserDao the sysUserDao to set
     */
    public void setSysUserDao(SysUserDao2 sysUserDao) {
        this.sysUserDao = sysUserDao;
    }

    
    

    
}
